package com.service;

import com.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminService {
    boolean login(String name,String pwd);
    boolean register(String name, String password);
    void insertAdmin(Admin admin);
    void deleteAdminById(Integer id);
    void updateAdmin(Admin admin);
    Admin selectAdminById(Integer id);
    Admin selectAdminByName(String name);
    List<Admin> selectAdmin();
    List<Admin> selectPageAdmin(@Param("pageNum")Integer pageNum,
                                @Param("pageSize")Integer pageSize);
}
